<?php
class ProjectModel extends RelationModel {
	protected $_link = array(
	'company'=> array(  
			'mapping_type'=>HAS_ONE,
			'class_name'=>'company',
			'foreign_key'=>'project_pid',		
			'parent_key'=>'pid',				
			'as_fields'=>'contact_name',			
			),	
	'projectgroup'=> array(  
			'mapping_type'=>HAS_ONE,
			'class_name'=>'projectgroup',
			'foreign_key'=>'project_pid',		
			'parent_key'=>'pid',
			'as_fields'=>'prefund:fund,managername,partnername',						
			),
			
           
         );
}
?>